home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Greatest Childrens Stories Ever Told
/
Greatest_Stories.iso
/
demos
/
funtown
/
demo.dir
/
00051_Script_Scripts 8
< prev
next >
Wrap
Text File
|
1994-11-08
|
4KB
|
100 lines
--òòò Scripts 6
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on showPatch newLocH, newLocV
global MS
if MS="Find" then showPatchOther newLocH, newLocV, 43, 1
else if MS="Match" then showPatchOther newLocH, newLocV, 43, 1
else showPatchOther newLocH, newLocV, 44, 0
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on showPatchOther newLocH, newLocV, whichSprite, BO
global QL, WQ, availableQuestions, mode, MS, CV, ML, QC
if MS="Find" or MS="Match" then
activate 47 ,"TransparentQDBox; center",1,37,10,269,"stretch to:",370,363
updateStage
end if
set whichLine=value ( item ( WQ ) of QL )
set activateParameters="activate 2,"& line ( whichLine ) of QC
updatePatch 2, activateParameters, the left of sprite 1, the top of sprite 1
set whichCast=item 10 of activateParameters
set whichCast=char 2 to ( the number of chars in whichCast -1 ) of whichCast
if whichCast="" or the number of cast ( whichCast )=-1 then
put "Hey! "& ( whichCast ) &" is not a cast member."
exit
end if
activate whichSprite,whichCast,1,36,190,310,"","",""
set the backColor of sprite whichSprite=255
if MS="Find" and BO=1 then showPatchFind activateParameters
if MS="Match" and BO=1 then showPatchMatch activateParameters
updateStage
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on showPatchFind activateParameters
set rightSide=value ( item ( the number of items in activateParameters ) of activateParameters )
activate 44 ,"TransparentQDBox; center",1,0,21,275,"stretch to:",21+rightSide,346
updateStage
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on showPatchMatch activateParameters
set leftSide=value ( item ( the number of items in activateParameters ) of activateParameters )
activate 44 ,"TransparentQDBox; center",1,0,21+leftSide,275,"stretch to:",360,346
updateStage
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on updatePatch whichSprite, activateParameters, newLocH, newLocV
global QL, WQ, mode, MS, CV, ML, RD
if whichSprite<2 or whichSprite>=35 then exit
set whichCast=item 2 of activateParameters
if whichCast contains "òNo Patch" then
activate whichSprite ,"TransparentQDBox",1,0,-5000,-5000,"","",""
exit
end if
if ( RD ) then
if the type of sprite whichSprite=0 then exit
if the locV of sprite whichSprite<=-4999 then exit
end if
put ( value ( item 5 of activateParameters ) + newLocH ) into item 5 of activateParameters
put ( value ( item 6 of activateParameters ) + newLocV ) into item 6 of activateParameters
if ( item 8 of activateParameters<>quote"e ) then put ( value ( item 8 of activateParameters ) + newLocH ) into item 8 of activateParameters
if ( item 9 of activateParameters<>quote"e ) then put ( value ( item 9 of activateParameters ) + newLocV ) into item 9 of activateParameters
if the type of sprite whichSprite=0 then do ( activateParameters )
else if 1=1 or the name of cast ( the castNum of sprite whichSprite )<>whichCast then do ( activateParameters )
if item 2 of activateParameters contains "TransparentQDBox" then set the backColor of sprite whichSprite=255
if ( item 7 of activateParameters=quote"e ) then
set the locH of sprite whichSprite=value ( item 5 of activateParameters )
set the locV of sprite whichSprite=value ( item 6 of activateParameters )
else
set spriteLeft=value ( item 5 of activateParameters )
set spriteTop=value ( item 6 of activateParameters )
set spriteRight=value ( item 8 of activateParameters )
set spriteBottom=value ( item 9 of activateParameters )
spritebox whichSprite, spriteLeft, spriteTop, spriteRight, spriteBottom
end if
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on revealPatches
global mode, MS
if mode>2 and mode<10 then
if the timer<30 then exit
revealOnePatch
end if
end
--ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
on revealOnePatch
global MS, IL, FCL, NQ
set whichSprite=2
put the ink of sprite whichSprite into IL
put the foreColor of sprite whichSprite into FCL
set the ink of sprite whichSprite=4
set the forecolor of sprite whichSprite=255
updateStage
startTimer
repeat while the timer<5 or the mouseDown
do ( "nothing" )
end repeat
set the ink of sprite whichSprite=value ( IL )
set the forecolor of sprite whichSprite=value ( FCL )
updateStage
end